﻿@model Wicresoft.SelfService.DAO.ServiceDetail
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/swfobject.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.uploadify.v2.1.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/uploadFiles.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/create.js")" type="text/javascript"></script>
@{
    string serviceName = string.Empty;
    string partialName = string.Empty;
    if (Model != null && Model.serviceType != null) { serviceName = Model.serviceType.serviceName; partialName = Model.serviceType.partialName; }
    ViewBag.Title = "新建的IT服务申请 -" + serviceName;
    Layout = "~/Views/Shared/_DetailLayout.cshtml";
}
@using (Html.BeginForm())
{
    if (Model == null)
    {
    <p>
        该申请单不存在，或者您没有权限访问。</p>
    }
    else
    { 
    <div class="center_box_bg">
        <div class="ChannelTitle">
            <h2>
                @serviceName</h2>
        </div>
        <div class="line_top">
            <table>
                <tr>
                    <td>
                        <input type="button" id="backBtn" class="Button1 ui-icons subForward" value="返回上一页" />
                    </td>
                    <td style="width:100%;">
                        <input class="Button1 ui-icons subForward" title="提交该申请至下一审批人" value="提交" type="submit"
                            name="action" />
                        <input class="Button1 ui-icons subSave" title="保存该申请单" value="保存" type="submit" name="action" />
                        <input class="Button1 ui-icons btnCancel" title="取消该申请单" value="取消" type="button" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="box_padding">
            @Html.HiddenFor(model => model.serviceRequestID, Model.serviceRequestID)
            @Html.ValidationSummary(true)
            @Html.Partial("UserInfo", Model)
            @Html.Partial(partialName, Model)
        </div>
        <div class="line_top">
            <input class="Button1 ui-icons subForward" title="提交该申请至下一审批人" value="提交" type="submit"
                name="action" />
            <input class="Button1 ui-icons subSave" title="保存该申请单" value="保存" type="submit" name="action" />
            <input class="Button1 ui-icons btnCancel" title="取消该申请单" value="取消" type="button" />
        </div>
    </div>
    <div id="greybackground">
       <div class="thickbox" style="left: 45%; top: 50%;">
          <img src="../../Content/images/Waiting.gif" style=" margin:0 auto;" />
       </div>
    </div>
    }
}
